package com.tos.second.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.tos.second.dto.UserPageQueryDTO;
import com.tos.second.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper extends BaseMapper<User> {
    Page<User> pageQuery(UserPageQueryDTO userPageQueryDTO);

    Boolean startOrStop(Long id, Integer status);

    @Select("select * from user where id = #{currentId}")
    User getById(Long currentId);
}
